﻿using System;
using System.Collections.Generic;
using Randomize.Core;

namespace Randomize.Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            var randomizer = new Randomizer();
            randomizer.Register(new EmployeeDescriptor());

            IEnumerable<Employee> employees = randomizer.Generate<Employee>(10);
            foreach(var employee in employees)
            {
                Console.WriteLine("Name: {0}, Salary: {1}, Birth date: {2}", employee.Name, employee.Salary,
                                    employee.BirthDate.ToShortDateString());
            }

            randomizer.Register(new PersonDescriptor());

            foreach(var person in randomizer.Generate<Person>(10))
            {
                Console.WriteLine(person);
            }

            Console.ReadKey();
        }
    }
}
